<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:U('Banners/index')}">轮播图列表</a></li>
			<li class="active"><a href="{:U('Banners/add')}">添加轮播图</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form" enctype="multipart/form-data" action="{:U('Banners/add_post')}">
			<fieldset>
				<div class="control-group">
					<label class="control-label"><b style="color:red;">* </b> 分类名称</label>
					<div class="controls">
						<select name="banner_type">
							<option value="">请选择</option>
							<option value="index">首页轮播图</option>
							<option value="shop_discount">店铺优惠轮播图</option>
							<option value="welfare">会员福利轮播图</option>
						</select>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><b style="color:red;">* </b> 轮播图</label>
					<div class="controls">
						<input type="file" name="banner_img">
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"> 跳转链接</label>
					<div class="controls">
						<input type="text" name="banner_url">
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:L('STATUS')}</label>
					<div class="controls">
						<label class="radio inline" for="active_true"><input type="radio" name="use_flg" value="1" checked id="active_true" />{:L('ENABLED')}</label>
						<label class="radio inline" for="active_false"><input type="radio" name="use_flg" value="0" id="active_false">{:L('DISABLED')}</label>
					</div>
				</div>
			</fieldset>
			<div class="form-actions">
				<button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button>
				<!--js-ajax-submit -->
				<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
			</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>